<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <a th:href="@{/download(path='d:\fileItem\1-尚硅谷项目课程系列之Elasticsearch.pdf',name='username')}">下载</a>
    <a th:href="@{/test/123}">下载</a>
</body>
</html>